package com.lixin.admin.server.convert;

import com.lixin.admin.server.model.Role;
import com.lixin.admin.server.vo.RoleVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface RoleConvert {
    RoleConvert INSTANCE = Mappers.getMapper(RoleConvert.class);
    RoleVO entity2vo(Role role);
    List<RoleVO> entityList2voList(List<Role> roleList);
}
